package com.example.androidmqtt.Vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.File;
import java.util.Date;

/**
 * @author: pjg
 * @time: 2022/9/20
 * 文章的详细信息
 */
public class NewsDetail {
    //新闻id
    private Integer newsId;
    //新闻标题
    private String newsTitle;
    //新闻内容
    private String newsContent;
    //新闻作者
//    private Integer newsAuthor;
    private String newsAuthor;
    //作者头像路径
    private String authorAvatar;


    //    private Integer newsDepartment;
    //新闻所属板块
    private String newsDepartment;
    //新闻上传的文件路径名
    private String newsAppendix;
    //新闻出版时间
    private String newsPublishTime;

    public NewsDetail() {
    }

    public NewsDetail(Integer newsId, String newsTitle, String newsContent, String newAuthor, String authorAvatar, String newsDepartment, String newsAppendix,String newsPublishTime) {
        this.newsId = newsId;
        this.newsTitle = newsTitle;
        this.newsContent = newsContent;
        this.newsAuthor = newAuthor;
        this.authorAvatar = authorAvatar;
        this.newsDepartment = newsDepartment;
        this.newsAppendix = newsAppendix;
        this.newsPublishTime = newsPublishTime;
    }


    public String getAuthorAvatar() {
        return authorAvatar;
    }

    public void setAuthorAvatar(String authorAvatar) {
        this.authorAvatar = authorAvatar;
    }

    public Integer getNewsId() {
        return newsId;
    }

    public void setNewsId(Integer newsId) {
        this.newsId = newsId;
    }

    public String getNewsTitle() {
        return newsTitle;
    }

    public void setNewsTitle(String newsTitle) {
        this.newsTitle = newsTitle;
    }

    public String getNewsContent() {
        return newsContent;
    }

    public void setNewsContent(String newsContent) {
        this.newsContent = newsContent;
    }

    public String getNewsAuthor() {
        return newsAuthor;
    }

    public void setNewsAuthor(String newsAuthor) {
        this.newsAuthor = newsAuthor;
    }

    public String getNewsDepartment() {
        return newsDepartment;
    }

    public void setNewsDepartment(String newsDepartment) {
        this.newsDepartment = newsDepartment;
    }

    public String getNewsAppendix() {
        return newsAppendix;
    }

    public void setNewsAppendix(String newsAppendix) {
        this.newsAppendix = newsAppendix;
    }

    public String getNewsPublishTime() {
        return newsPublishTime;
    }

    public void setNewsPublishTime(String newsPublishTime) {
        this.newsPublishTime = newsPublishTime;
    }

    @Override
    public String toString() {
        return "NewsDetail{" +
                "newsId=" + newsId +
                ", newsTitle='" + newsTitle + '\'' +
                ", newsContent='" + newsContent + '\'' +
                ", newsAuthor='" + newsAuthor + '\'' +
                ", newsDepartment='" + newsDepartment + '\'' +
                ", newsAppendix='" + newsAppendix + '\'' +
                ", newsPublishTime='" + newsPublishTime + '\'' +
                '}';
    }
}
